package com.hangzhou.welbeing.welbeinginstrument.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.hangzhou.welbeing.welbeinginstrument.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 时间 2017 年 09 月 22.
 * 作者 Administrator  刘传华
 * 公司 杭州惟君医疗科技有限公司
 * 包名 com.hangzhou.welbeing.pregnant.welbeing_pregnant.activity
 * 工程名 welbeing_pregnant
 */
public class InviteYourFamilyActivity extends Activity {
    @Bind(R.id.activity_invite_your_family_iv_return)
    ImageView activityInviteYourFamilyIvReturn;
    @Bind(R.id.activity_invite_your_family_mother_head_portrait)
    ImageView activityInviteYourFamilyMotherHeadPortrait;
    @Bind(R.id.activity_invite_your_family_rl_01)
    RelativeLayout activityInviteYourFamilyRl01;
    @Bind(R.id.activity_invite_your_family_father_head_portrait)
    ImageView activityInviteYourFamilyFatherHeadPortrait;
    @Bind(R.id.activity_invite_your_family_rl_02)
    RelativeLayout activityInviteYourFamilyRl02;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_invite_your_family);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.activity_invite_your_family_iv_return, R.id.activity_invite_your_family_rl_01, R.id.activity_invite_your_family_rl_02})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.activity_invite_your_family_iv_return:
                finish();
                break;
            case R.id.activity_invite_your_family_rl_01: //我是宝妈  I am a treasure mom
                Intent intent6 = new Intent(InviteYourFamilyActivity.this, IAmTreasureMOMActivity.class);
                startActivity(intent6);
                break;
            case R.id.activity_invite_your_family_rl_02: //我是宝爸 I am a treasure to dad
                Intent intent7 = new Intent(InviteYourFamilyActivity.this, IAmTreasureDedActivity.class);
                startActivity(intent7);
                break;
        }
    }
}
